<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>剑来 - 起点中文网</title>
    <style>
        /* 全局样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f4f4f4;
            min-height: 100vh;
        }
        
        /* 顶部导航栏 - 起点特色 */
        .qidian-header {
            background: linear-gradient(to right, #e60012 0%, #c60010 100%);
            height: 80px;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }
        
        .qidian-logo {
            color: white;
            font-size: 28px;
            font-weight: bold;
            text-decoration: none;
            letter-spacing: 2px;
        }
        
        .nav-menu {
            display: flex;
            gap: 30px;
        }
        
        .nav-item {
            color: white;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .nav-item:hover {
            color: #ffd700;
        }
        
        .nav-item::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #ffd700;
            transition: width 0.3s ease;
        }
        
        .nav-item:hover::after {
            width: 100%;
        }
        
        /* 主要内容容器 */
        .container {
            width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }
        
        /* 书籍信息头部 */
        .book-header {
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 30px;
            display: flex;
            gap: 30px;
            margin-bottom: 20px;
        }
        
        .book-cover {
            width: 200px;
            height: 280px;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            background-color: #f8f8f8;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .book-details {
            flex: 1;
        }
        
        .book-title {
            font-size: 28px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
        }
        
        .book-meta {
            margin-bottom: 20px;
            font-size: 14px;
            color: #666;
        }
        
        .book-meta span {
            margin-right: 15px;
        }
        
        .book-desc {
            color: #555;
            line-height: 1.8;
            text-indent: 2em;
            margin-bottom: 20px;
            font-size: 15px;
        }
        
        .book-actions {
            display: flex;
            gap: 15px;
        }
        
        .action-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
        }
        
        .read-now-btn {
            background-color: #e60012;
            color: white;
        }
        
        .read-now-btn:hover {
            background-color: #c60010;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(230, 0, 18, 0.3);
        }
        
        .add-bookshelf-btn {
            background-color: #ff9900;
            color: white;
        }
        
        .add-bookshelf-btn:hover {
            background-color: #e68a00;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
        }
        
        /* 评分区域 */
        .score-section {
            width: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #f9f9f9;
            border-radius: 4px;
            padding: 20px;
        }
        
        .score-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        
        .score-number {
            font-size: 48px;
            font-weight: bold;
            color: #e60012;
            line-height: 1;
        }
        
        .score-stars {
            color: #ffd700;
            font-size: 20px;
            margin: 10px 0;
        }
        
        /* 主体内容布局 */
        .content-layout {
            display: flex;
            gap: 20px;
        }
        
        /* 左侧主要内容 */
        .main-content {
            flex: 3;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        /* 右侧边栏 */
        .sidebar {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        /* 通用区块样式 */
        .section {
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 25px;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e60012;
            display: flex;
            align-items: center;
        }
        
        .section-title::before {
            content: '';
            width: 4px;
            height: 20px;
            background-color: #e60012;
            margin-right: 10px;
        }
        
        /* 最新章节 */
        .latest-chapters {
            list-style-type: none;
        }
        
        .chapter-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .chapter-item:last-child {
            border-bottom: none;
        }
        
        .chapter-link {
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 15px;
        }
        
        .chapter-link:hover {
            color: #e60012;
        }
        
        .chapter-date {
            color: #999;
            font-size: 14px;
        }
        
        /* 作者信息 */
        .author-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #e60012;
            font-weight: bold;
        }
        
        .author-details {
            flex: 1;
        }
        
        .author-name {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .author-stats {
            font-size: 14px;
            color: #666;
        }
        
        /* 排行榜 */
        .ranking-list {
            list-style-type: none;
        }
        
        .ranking-item {
            display: flex;
            gap: 12px;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.3s ease;
        }
        
        .ranking-item:hover {
            background-color: #f9f9f9;
        }
        
        .ranking-item:last-child {
            border-bottom: none;
        }
        
        .ranking-number {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            background-color: #e60012;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .ranking-number:nth-child(n+4) {
            background-color: #999;
        }
        
        .ranking-info {
            flex: 1;
        }
        
        .ranking-title {
            font-weight: bold;
            font-size: 15px;
            margin-bottom: 4px;
        }
        
        .ranking-stats {
            font-size: 12px;
            color: #999;
        }
        
        /* 投票区域 */
        .vote-section {
            text-align: center;
            padding: 20px;
        }
        
        .vote-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
        }
        
        .vote-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .vote-btn {
            padding: 12px 20px;
            border: 1px solid #e60012;
            background-color: white;
            color: #e60012;
            border-radius: 4px;
            cursor: pointer;
            font-size: 15px;
            transition: all 0.3s ease;
        }
        
        .vote-btn:hover {
            background-color: #e60012;
            color: white;
        }
        
        /* 打赏区域 */
        .donation-section {
            text-align: center;
        }
        
        .donation-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
        }
        
        .donation-amounts {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .donation-amount {
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .donation-amount:hover,
        .donation-amount.active {
            background-color: #e60012;
            color: white;
            border-color: #e60012;
        }
        
        .donation-btn {
            padding: 12px 30px;
            background-color: #e60012;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .donation-btn:hover {
            background-color: #c60010;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(230, 0, 18, 0.3);
        }
        
        /* 推荐作品 */
        .recommended-books {
            list-style-type: none;
        }
        
        .recommended-item {
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
        }
        
        .recommended-item:hover {
            background-color: #f9f9f9;
            transform: translateX(5px);
        }
        
        .recommended-item:last-child {
            border-bottom: none;
        }
        
        .recommended-title {
            font-weight: bold;
            font-size: 15px;
            margin-bottom: 5px;
            color: #333;
        }
        
        .recommended-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
        }
        
        /* 页脚 */
        .footer {
            background-color: #2e2e2e;
            color: #999;
            padding: 40px 0;
            margin-top: 40px;
        }
        
        .footer-content {
            width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .footer-link {
            color: #999;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }
        
        .footer-link:hover {
            color: white;
        }
        
        .footer-copyright {
            text-align: center;
            font-size: 12px;
            line-height: 1.8;
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .header-container,
            .container,
            .footer-content {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .nav-menu {
                gap: 15px;
            }
            
            .nav-item {
                font-size: 14px;
            }
            
            .book-header {
                flex-direction: column;
                text-align: center;
                padding: 20px;
            }
            
            .book-cover {
                width: 150px;
                height: 210px;
                margin: 0 auto;
            }
            
            .book-actions {
                justify-content: center;
            }
            
            .content-layout {
                flex-direction: column;
            }
            
            .score-section {
                width: 100%;
            }
            
            .section {
                padding: 20px;
            }
        }
    </style>
  </head>
  <body>
    <div id="app"></div>
    
    <!-- 顶部导航栏 -->
    <header class="qidian-header">
        <div class="header-container">
            <a href="#" class="qidian-logo">起点中文网</a>
            <nav class="nav-menu">
                <a href="#" class="nav-item">首页</a>
                <a href="#" class="nav-item">分类</a>
                <a href="#" class="nav-item">排行</a>
                <a href="#" class="nav-item">完本</a>
                <a href="#" class="nav-item">新书</a>
                <a href="#" class="nav-item">包月</a>
            </nav>
        </div>
    </header>
    
    <!-- 主要内容区域 -->
    <div class="container">
        <!-- 书籍信息头部 -->
        <div class="book-header">
            <div class="book-cover">
                <img src="/img/宁姚陈平安海报.jpg" alt="剑来封面">
            </div>
            
            <div class="book-details">
                <h1 class="book-title">剑来</h1>
                <div class="book-meta">
                    <span>作者：烽火戏诸侯</span>
                    <span>分类：玄幻</span>
                    <span>状态：连载中</span>
                    <span>字数：622.8万字</span>
                </div>
                <div class="book-desc">大千世界，无奇不有。我陈平安，唯有一剑，可搬山，倒海，降妖，镇魔，敕神，摘星，断江，摧城，开天！我叫陈平安，平平安安的平安，我是一名剑客。</div>
                <div class="book-actions">
                    <button class="action-btn read-now-btn">立即阅读</button>
                    <button class="action-btn add-bookshelf-btn">加入书架</button>
                </div>
            </div>
            
            <div class="score-section">
                <div class="score-label">起点评分</div>
                <div class="score-number">9.3</div>
                <div class="score-stars">★★★★★</div>
                <div class="score-stats">总推荐：2323.5万</div>
                <div class="score-stats">总收藏：428.6万</div>
            </div>
        </div>
        
        <!-- 主体内容布局 -->
        <div class="content-layout">
            <!-- 左侧主要内容 -->
            <div class="main-content">
                <!-- 最新章节 -->
                <div class="section">
                    <h2 class="section-title">最新章节</h2>
                    <ul class="latest-chapters">
                        <li class="chapter-item">
                            <a href="#" class="chapter-link">第1234章 山水有相逢</a>
                            <span class="chapter-date">2023-10-15</span>
                        </li>
                        <li class="chapter-item">
                            <a href="#" class="chapter-link">第1233章 人间烟火气</a>
                            <span class="chapter-date">2023-10-14</span>
                        </li>
                        <li class="chapter-item">
                            <a href="#" class="chapter-link">第1232章 江湖路远</a>
                            <span class="chapter-date">2023-10-13</span>
                        </li>
                        <li class="chapter-item">
                            <a href="#" class="chapter-link">第1231章 剑开天门</a>
                            <span class="chapter-date">2023-10-12</span>
                        </li>
                        <li class="chapter-item">
                            <a href="#" class="chapter-link">第1230章 人间值得</a>
                            <span class="chapter-date">2023-10-11</span>
                        </li>
                    </ul>
                </div>
                
                <!-- 作者信息 -->
                <div class="section">
                    <h2 class="section-title">作者信息</h2>
                    <div class="author-info">
                        <div class="author-avatar">烽</div>
                        <div class="author-details">
                            <div class="author-name">烽火戏诸侯</div>
                            <div class="author-stats">粉丝：1245.6万 | 作品：12部 | 累计字数：3856万字</div>
                        </div>
                    </div>
                    <p class="book-desc">烽火戏诸侯，本名陈政华，中国网络作家富豪榜当红上榜作家，浙江省网络作家协会副主席，原起点中文网白金作家，现纵横中文网专栏作家。代表作有《极品公子》《陈二狗的妖孽人生》《天神下凡》《雪中悍刀行》《剑来》等。</p>
                </div>
                
                <!-- 作品简介 -->
                <div class="section">
                    <h2 class="section-title">作品简介</h2>
                    <p class="book-desc">大千世界，无奇不有。我陈平安，唯有一剑，可搬山，倒海，降妖，镇魔，敕神，摘星，断江，摧城，开天！</p>
                    <p class="book-desc">我叫陈平安，平平安安的平安，我是一名剑客。</p>
                    <p class="book-desc">主角陈平安是一个普通的山民，因为家里有一座神秘的老剑条而被卷入各种事件。在经历了一系列的磨难后，他逐渐成长为一名强大的剑修，并开始探索这个世界的真相。</p>
                    <p class="book-desc">本书以细腻的笔触描绘了一个宏大的仙侠世界，塑造了众多栩栩如生的角色，情节跌宕起伏，引人入胜。</p>
                </div>
            </div>
            
            <!-- 右侧边栏 -->
            <div class="sidebar">
                <!-- 热门榜单 -->
                <div class="section">
                    <h2 class="section-title">热门榜单</h2>
                    <ul class="ranking-list">
                        <li class="ranking-item">
                            <div class="ranking-number">1</div>
                            <div class="ranking-info">
                                <div class="ranking-title">剑来</div>
                                <div class="ranking-stats">玄幻 | 622.8万字</div>
                            </div>
                        </li>
                        <li class="ranking-item">
                            <div class="ranking-number">2</div>
                            <div class="ranking-info">
                                <div class="ranking-title">雪中悍刀行</div>
                                <div class="ranking-stats">玄幻 | 460.2万字</div>
                            </div>
                        </li>
                        <li class="ranking-item">
                            <div class="ranking-number">3</div>
                            <div class="ranking-info">
                                <div class="ranking-title">庆余年</div>
                                <div class="ranking-stats">历史 | 398.6万字</div>
                            </div>
                        </li>
                        <li class="ranking-item">
                            <div class="ranking-number">4</div>
                            <div class="ranking-info">
                                <div class="ranking-title">诡秘之主</div>
                                <div class="ranking-stats">玄幻 | 446.5万字</div>
                            </div>
                        </li>
                        <li class="ranking-item">
                            <div class="ranking-number">5</div>
                            <div class="ranking-info">
                                <div class="ranking-title">斗罗大陆</div>
                                <div class="ranking-stats">玄幻 | 1000.0万字</div>
                            </div>
                        </li>
                    </ul>
                </div>
                
                <!-- 投票区域 -->
                <div class="section">
                    <div class="vote-section">
                        <h3 class="vote-title">支持本书</h3>
                        <div class="vote-buttons">
                            <button class="vote-btn">推荐票</button>
                            <button class="vote-btn">月票</button>
                            <button class="vote-btn">打赏</button>
                        </div>
                    </div>
                </div>
                
                <!-- 打赏区域 -->
                <div class="section">
                    <div class="donation-section">
                        <h3 class="donation-title">支持作者</h3>
                        <div class="donation-amounts">
                            <div class="donation-amount">50起点币</div>
                            <div class="donation-amount active">100起点币</div>
                            <div class="donation-amount">500起点币</div>
                            <div class="donation-amount">1000起点币</div>
                            <div class="donation-amount">5000起点币</div>
                        </div>
                        <button class="donation-btn">立即打赏</button>
                    </div>
                </div>
                
                <!-- 推荐作品 -->
                <div class="section">
                    <h2 class="section-title">推荐作品</h2>
                    <ul class="recommended-books">
                        <li class="recommended-item">
                            <div class="recommended-title">雪中悍刀行</div>
                            <div class="recommended-desc">天下风云出我辈，一入江湖岁月催。皇图霸业谈笑中，不胜人生一场醉。</div>
                        </li>
                        <li class="recommended-item">
                            <div class="recommended-title">将夜</div>
                            <div class="recommended-desc">这是一个关于宁缺的故事，一个关于信念和坚持的故事。</div>
                        </li>
                        <li class="recommended-item">
                            <div class="recommended-title">庆余年</div>
                            <div class="recommended-desc">积善之家，必有余庆，留余庆，留余庆，忽遇恩人；幸娘亲，幸娘亲，积得阴功。</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 页脚 -->
    <footer class="footer">
        <div class="footer-content">
            <div class="footer-links">
                <a href="#" class="footer-link">关于我们</a>
                <a href="#" class="footer-link">帮助中心</a>
                <a href="#" class="footer-link">作家专区</a>
                <a href="#" class="footer-link">版权声明</a>
                <a href="#" class="footer-link">隐私政策</a>
            </div>
            <div class="footer-copyright">© 2002-2023 起点中文网 版权所有<br>京ICP备11013962号-1 京网文[2019]0816-011号</div>
        </div>
    </footer>
    
    <script type="module" src="/src/main.js"></script>
    
    <script>
        // 立即阅读按钮功能
        document.querySelector('.read-now-btn').addEventListener('click', function() {
            window.open('剑来.txt', '_blank');
        });
        
        // 加入书架功能
        document.querySelector('.add-bookshelf-btn').addEventListener('click', function() {
            alert('已加入书架！');
        });
        
        // 打赏金额选择功能
        const donationAmounts = document.querySelectorAll('.donation-amount');
        
        donationAmounts.forEach(amount => {
            amount.addEventListener('click', function() {
                donationAmounts.forEach(item => item.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
        // 打赏按钮功能
        document.querySelector('.donation-btn').addEventListener('click', function() {
            const activeAmount = document.querySelector('.donation-amount.active').textContent;
            alert(`感谢您打赏${activeAmount}！`);
        });
        
        // 投票按钮功能
        const voteButtons = document.querySelectorAll('.vote-btn');
        
        voteButtons.forEach(button => {
            button.addEventListener('click', function() {
                alert(`感谢您的${this.textContent}！`);
            });
        });
        
        // 章节点击功能
        const chapterLinks = document.querySelectorAll('.chapter-link');
        
        chapterLinks.forEach(link => {
            link.addEventListener('click', function(e) {
                e.preventDefault();
                alert(`正在跳转到${this.textContent}...`);
                window.open('剑来.txt', '_blank');
            });
        });
    </script>
  </body>
</html>
